
package com.suarte.webapp.action;

import com.suarte.core.service.EmployeeManager;
import java.io.Serializable;
import java.util.List;

/**
 * @date   Feb 21, 2010
 * @author Ggutierrez
 */
public class EmployeeList extends BasePage implements Serializable {
    private EmployeeManager employeeManager;

    public void setEmployeeManager(EmployeeManager employeeManager) {
        this.employeeManager = employeeManager;
    }

    public EmployeeList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getEmployees() {
        return sort(employeeManager.getAll());
    }
}
